import requests

proxies = {"https":"https://150.138.253.72:808"}
headers = {
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
}
r = requests.get("https://www.baidu.com",proxies=proxies,headers=headers)
print(r.status_code)

"""
注意1：这里所有协议都要写https，不能写http，不然会出现403错误
"""